﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using KinectStudio.ModuliFile;
using KinectStudio.ModuliServomotore;
using KinectStudio.ModuliVisione;
using KinectStudio.ModuliAbout;
using KinectStudio.ModuliAudio;
using KinectStudio.ModuliTracciamento;
using KinectStudio.ModuliInterfacciamento;

namespace KinectStudio
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }


        

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            MenuItem menuCliccato = (MenuItem)e.OriginalSource;
            switch (menuCliccato.Header.ToString())
            {
                case "Elenca Dispositivi":
                    ElencaDispositivi elencadispositivi = new ElencaDispositivi();
                    elencadispositivi.ShowDialog();
                    break;
                case "Angolatura":
                    Angolatura angolatura = new Angolatura();
                    angolatura.ShowDialog();
                    break;
                case "Vga":
                    Vga vga = new Vga();
                    vga.ShowDialog();
                    break;
                case "Stereoscopico":
                    Stereoscopico stereoscopico = new Stereoscopico();
                    stereoscopico.ShowDialog();
                    break;
                case "Infrarosso":
                    Infrarosso infrarosso = new Infrarosso();
                    infrarosso.ShowDialog();
                    break;
                case "Sonar":
                    Sonar sonar = new Sonar();
                    sonar.ShowDialog();
                    break;
                case "Ric. Vocale":
                    RiconoscimentoVocale riconoscimentovocale = new RiconoscimentoVocale();
                    riconoscimentovocale.ShowDialog();
                    break;
                case "Scheletro":
                    Scheletro scheletro = new Scheletro();
                    scheletro.ShowDialog();
                    break;
                case "Android USB":
                    AndroidUSB androidUSB = new AndroidUSB();
                    androidUSB.ShowDialog();
                    break;
                case "About":
                    About about = new About();
                    about.ShowDialog();
                    break;
                case "Esci":
                    Application.Current.Shutdown();
                    break;
            }
        }

       
       

        
    }
}
